package com.yaozheng.vocationaltraining.fragment;

import org.androidannotations.annotations.AfterViews;
import org.androidannotations.annotations.Click;
import org.androidannotations.annotations.EFragment;
import org.androidannotations.annotations.ViewById;

import android.content.Intent;
import android.widget.TextView;

import com.yaozheng.vocationaltraining.R;
import com.yaozheng.vocationaltraining.activity.HomeActivity;
import com.yaozheng.vocationaltraining.utils.Constants;

/**
 * 我的菜单栏
 *
 * @author Administrator
 */
@EFragment(R.layout.fragment_my)
public class MyMenuFragment extends BaseFragment {
    @ViewById
    TextView headTitleText;

    public HomeActivity getHomeActivity() {
        return (HomeActivity) getActivity();
    }

    @AfterViews
    public void initView() {
        headTitleText.setText("我的");
    }

    /**
     * 个人中心点击
     */
    @Click(R.id.myUserInfoLayout)
    public void myUserInfoClick() {
        getHomeActivity().openMyUserInfoFragment();
    }

    /**
     * 我的积分点击
     */
    @Click(R.id.myIntegralLayout)
    public void myIntegralCLick() {
        getHomeActivity().openMyIntegralFragment();
    }

    /**
     * 我的轨迹点击
     */
    @Click(R.id.myLocusLayout)
    public void myLocusClick() {
        getHomeActivity().openMyLocusFragment();
    }

    /**
     * 我的收藏点击
     */
    @Click(R.id.myCollectLayout)
    public void myCollectClick() {
        getHomeActivity().openMyCollectFragment();
    }


    /**
     * 我的经验值
     */
    @Click(R.id.myExperienceText)
    public void myExperienceClick() {
        getHomeActivity().openMyExperienceFragment();
    }
}
